<%@ page pageEncoding="utf-8"%>
<%request.setCharacterEncoding("utf-8");%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@ include file="/include/filepath.jsp"%>
<%@ include file="/include/pageexpires.jsp" %>
<%@include file="/include/currentuserinfo.jsp"%>
<html>
  <head>
    <title>信息列表</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
     <link type="text/css" rel="stylesheet" href="<%=ctxpath%>/themes/newstyle/styles/mac/macmenu.css" id="menuStyleSheet">
  </head>
  <script language="javascript">
//window.opener.document.location.reload();
function closeRemind(){
  window.opener.document.location.reload();
  window.close();
}
function submitRemind(){
  if(document.chatUserInfoForm.chatdesc.value != '' && document.chatUserInfoForm.chatdesc.value.length > 4 ){
  alert("个性签名不能超过4个汉字");
  document.chatUserInfoForm.chatdesc.focus();
  }else{
  document.chatUserInfoForm.action="<%=ctxpath%>/chat/remind/saveorupdate.do";
  //alert("asd");
  document.chatUserInfoForm.submit();
  }
  
}
  </script>
  <body scroll="no" id="body">
    <table id="display" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
      <tr>
        <td valign="top">
          <div id="layer1" style="width:100%; height:100%; z-index:50; overflow: auto;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
              <tr>
                <td valign="top" align="center">
                  <table cellspacing="0" cellpadding="0" class="labeltable_middle">
                    <tr>
                      <td class="labeltd_middle">
                        
                        <%
                        //onUnload="opener.location.reload()"
                        com.ecomm.chat.pojo.ChatUserInfo chatUserInfo =(com.ecomm.chat.pojo.ChatUserInfo)request.getAttribute("ChatUserInfoObject");
                        %>
                        <form name="chatUserInfoForm" action="/chat/remind/saveorupdate.do" method="post" >
                          <input type="hidden" name="method" value="saveorupdate"/>
                          <input type="hidden" name="imgPath" value="1"/>
                          <input type="hidden" input type="hidden" name="mathtype" value="1"/>
                          <input type="hidden" name="userid" value="<%=userid%>"/>
                          <input type="hidden" name="id" value="<%=chatUserInfo != null ? chatUserInfo.getId():""%>"/>
                          <table class="labeltable_middle_table">
                            <tr>
                              <td colspan="2" align="center" class="labeltable_middle_td_01">消息功能设置</td>
                            </tr>
                            <tr>
                              <td align="center" class="labeltable_middle_td_01" width="30%">个性签名:</td>
                              <td width="70%"><input type="text" name="chatdesc" value="<%=chatUserInfo != null ? chatUserInfo.getChatdesc():""%>" ></td>
                            </tr>
                           <!-- <tr >
                              <td align="center" class="labeltable_middle_td_01" width="30%">个性头像:</td>
                              <td width="70%">
                                <%
                              //  String imgPathBool ="1";
                             //   if(chatUserInfo != null && chatUserInfo.getImgPath() != null){
                              //    imgPathBool = chatUserInfo.getImgPath();
                              //  }
                             //   for(int i =1;i<=15;i++){
                                %>
                                <input type="radio" name="imgPath" value="<%//=i%>" <%//if(imgPathBool.equals(i+"")) out.println("checked");%>><img src="/chat/img/online/<%//=i%>_1.gif">
                                <%
                              //  if(i%5 == 0){
                              //    out.print("<br>");
                             //   }
                             //   }
                                %>
                              </td>
                            </tr>-->
                            <tr>
                              <td align="center" class="labeltable_middle_td_01" width="30%">嵌入模式:</td>
                              <td width="70%"><input type='checkbox' name='imgtype' value='1' <%if(chatUserInfo != null && chatUserInfo.getImgtype() != null && chatUserInfo.getImgtype().equals("1")) out.println("checked");%> >嵌入提示(每次登陆和隔1分钟，在浏览器的右上面提示有多少条未查收消息)</td>
                            </tr>
                            <tr>
                              <td align="center" class="labeltable_middle_td_01">声音模式:</td>
                              <td > <input type='checkbox' name='soundtype' value='1' <%if(chatUserInfo != null && chatUserInfo.getSoundtype() != null && chatUserInfo.getSoundtype().equals("1")) out.println("checked");%> >声音提示(当你收到消息时，系统会用优雅的声音提示你)</td>
                            </tr>
                            <tr>
                              <td align="center" class="labeltable_middle_td_01">弹出模式:</td>
                              <td > <input type='checkbox' name='fliptype' value='1'  <%if(chatUserInfo != null && chatUserInfo.getFliptype() != null && chatUserInfo.getFliptype().equals("1")) out.println("checked"); %> >弹出提示(每次登陆和隔1分钟，系统会弹出一个新页面提示你回复)</td>
                            </tr>
                          </table>
                          <table class="labeltable_middle_table">
                            <tr>
                              <td align="center" class="labeltable_middle_td_01">
                                <input type="button" onclick="submitRemind()" value="提交" />
                                <input type="button" value="关闭"  onclick="closeRemind()"/>
                              </td>
                            </tr>
                          </table>
                        </form>
                        
                      </td>
                    </tr>
                  </table>   
                  <table border="0" cellpadding="0" cellspacing="0" class="labeltable_bottom">
                    <tr>
                      <td class="left">&nbsp;</td>
                      <td class="center">&nbsp;</td>
                      <td class="right">&nbsp;</td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>





